package extend.part3;



public class Print  implements Compare<Teacher>{
    public void print(Student s){
        System.out.println(s);
    }

    @Override
    public void compare(Teacher t) {
        System.out.println(t);
    }
}
